package com.qingzhou.web.repository.entity;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.qingzhou.common.web.domain.BaseEntity;
import com.qingzhou.web.service.impl.convert.DictParent;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 组学分析 对象
 * @author xm
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "edc_omics")
public class OmicsEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Id
    private Long id;

    @ApiModelProperty(value = "状态")
    private String status;


    @ApiModelProperty(value = "患者编号")
    private String patientCode;

    @ApiModelProperty(value = "检查日期")
    @DateTimeFormat("yyyy年MM月dd日")
    private Date omicsTestDate;

    @ApiModelProperty(value = "检查时间", notes = "字典 test_time_dict")
    @DictParent("test_time_dict")
    private String testTime;

    @ApiModelProperty(value = "分析类型")
    @DictParent("omics_snalysis_type")
    private String analysisType;

    @ApiModelProperty(value = "分析内容")
    private String analysisContent;

    @ApiModelProperty(value = "分析结果")
    private String analysisResult;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty("数据检查原因")
    private String editReason;

    @ApiModelProperty("终止原因")
    private String stopReason;
}
